﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common.DLR
{
    /// <summary>
    /// 
    /// </summary>
    [Serializable]
    public class MethodConstructInfo
    {
        private Type _ReturnType;
        /// <summary></summary>
        public Type ReturnType
        {
            get { return _ReturnType; }
            set { _ReturnType = value; }
        }

        private string _MethodName;
        /// <summary></summary>
        public string MethodName
        {
            get { return _MethodName; }
            set { _MethodName = value; }
        }

        private List<MethodArgument> _Args;
        /// <summary></summary>
        public List<MethodArgument> Args
        {
            get { return _Args; }
            set { _Args = value; }
        }

        private string _MethodBody;
        /// <summary></summary>
        public string MethodBody
        {
            get { return _MethodBody; }
            set { _MethodBody = value; }
        }
        /// <summary></summary>
        public MethodConstructInfo(Type returnType, string methodName, List<MethodArgument> args, string methodBody)
        {
            this._ReturnType = returnType;
            this._MethodName = methodName;
            this._Args = args;
            this._MethodBody = methodBody;
        }
    }
}
